//
//  searchCollectionViewCell.m
//  lmq
//
//  Created by 千翼网络科技 on 2017/3/24.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "searchCollectionViewCell.h"

#import "configddd.h"
@implementation searchCollectionViewCell

-(id)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        self.backView=[[UIView alloc]initWithFrame:CGRectMake(0,0, screenScale(288), screenScale(390))];
        [self addSubview:self.backView];
        
        //显示图片
        self.imageshow=[[UIImageView alloc]initWithFrame:CGRectMake((0), (0), screenScale(288), screenScale(288))];
        [self.backView addSubview:self.imageshow];
        
        //名称
        self.myLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, screenScale(294), screenScale(288), screenScale(60))];
        self.myLabel.textAlignment=NSTextAlignmentLeft;
        self.myLabel.numberOfLines=0;
        self.myLabel.font = get4sFont(12);
        [self.backView addSubview:self.myLabel];
        
        //¥
        self.moneyLable = [[UILabel alloc]initWithFrame:CGRectMake(0, screenScale(360), screenScale(24), screenScale(24))];
        self.moneyLable.textAlignment = NSTextAlignmentLeft;
        self.moneyLable.font = get4sFont(11);
        self.moneyLable.text = @"¥";
        [self.backView addSubview:self.moneyLable];
        
        //价格
        self.priceLabel=[[UILabel alloc]initWithFrame:CGRectMake(screenScale(25), screenScale(360), screenScale(100), screenScale(24))];
        self.priceLabel.textAlignment=NSTextAlignmentLeft;
        self.priceLabel.font=get4sFont(11);
        [self.backView addSubview:self.priceLabel];
    }
    return self;
}

@end
